﻿// See https://aka.ms/new-console-template for more information
using Ys.Base.Common;
using Test.Service;
using NModbus;
using System.Reflection.Emit;
using System.Net.Sockets;

Console.WriteLine("Hello, World!");

var qdb = new Questdb();

var getlist=qdb.Db.Queryable<UserLogs>().ToPageList(500,1000);

Console.WriteLine(YsJson.ToJson(getlist));

//qdb.DbInit();


//long vid = 0;

//for (int c = 0; c < 1000; c++)
//{
//    var usergid = Guid.NewGuid();
//    qdb.Db.Insertable(new User { Id = usergid, UserNo =c.ToString(), UserName ="姓名"+c }).ExecuteCommand();
//   var list = new List<UserLogs>();
//    for (int i = 0; i < 100000; i++)
//    {
//        vid++;
//        list.Add(new UserLogs {UserId=usergid,Id=Guid.NewGuid(),Val=vid.ToString() });
//    }
//    qdb.Db.Insertable(list).ExecuteCommand();

//    Console.WriteLine(c + "_user创建成功");
//}
